<div class="row">
	<div class="col-md-12">
		<h1>Gian hàng <small>Danh sách gian hàng</small></h1>
		<ol class="breadcrumb">
            <li><a href="<?php echo admin_page_url(); ?>"><i class="fa fa-dashboard"></i> Dashboard</a></li>
            <li class="active"><i class="fa fa-table"></i> Các gian hàng đăng kí mới</li>
        </ol>
    </div>
</div>

<div class="row">
    <div class="col-md-12">
        <div class="pull-right"><?php echo $pagingBar; ?></div>
    </div>

    <div class="col-md-12">
        <form method="post" action="<?php echo admin_page_url(SHOP_SLUG.'/kich-hoat'); ?>">
        <div class="table-responsive">
            <table class="table table-bordered table-hover tablesorter item-list">
                <thead>
                    <tr>
                        <th class="header"># <i class="fa fa-sort"></i></th>
                        <th class="header">Banner</th>
                        <th class="header">Gian hàng <i class="fa fa-sort"></i></th>
                        <th class="header"> Người dùng <i class="fa fa-sort"></i></th>
                        <th class="header">Liên hệ</th>
                        <th class="header">Kích hoạt</th>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach($aShop as $index=>$tShop) { ?>
                    <tr class="can-edit" data-user-id="<?php echo $this->encrypt->encode($tShop->user_id); ?>" data-id="<?php echo $this->encrypt->encode($tShop->getId()); ?>">
                        <th class="header bg-info"><?php echo $index+1; ?></th>
                        <td class="col-md-1 col-xs-12">
                            <div class="media">
                                <?php if($tShop->banner!='') { ?>
                                <a href="<?php echo banner_upload($tShop->banner, $tShop->image_folder, false); ?>" class="thumbnail fancybox">
                                    <img class="media-object" src="<?php echo banner_upload($tShop->banner, $tShop->image_folder); ?>" />
                                </a>
                                <?php } else { ?>
                                <a href="#" class="thumbnail">
                                    <img data-src='holder.js/150x100%' class="media-object" src="" />
                                </a>
                                <?php } ?>
                            </div>
                        </td>
                        <td class="">
                            <h4><a href="<?php echo shop_url($tShop->getSlug()); ?>"><?php echo $tShop->getTitle(); ?></a></h4>
                            <p><a href="<?php echo shop_url($tShop->getSlug()); ?>"><?php echo $tShop->getSlug(); ?></a></p>

                            <p>Ngày gia nhập : <?php echo fdate_format($tShop->shop_created_at); ?></p>
                        </td>
                        <td class="input-shop-title">
                            <?php echo $tShop->full_name ?>
                        </td>
                        <td>
                            <p>Homepage : <a href="<?php echo $tShop->home_page; ?>"><?php echo $tShop->home_page; ?></a></p>
                            <p>Email : <a href="mailto:<?php echo $tShop->email; ?>"><?php echo $tShop->email; ?></a></p>
                            <p>Phone : <?php echo $tShop->phone; ?> / <?php echo $tShop->home_phone; ?></p>
                            <p>Skype : <a href="skype:<?php echo $tShop->skype; ?>?call"><?php echo $tShop->skype; ?></a></p>
                            <div>
                                <p>Address :</p>
                                <textarea readonly="readonly" class="form-control"><?php echo $tShop->address; ?></textarea>
                            </div>
                        </td>
                        <td class="input-shop-active-flg">
                            <input id="chk-<?php echo $index+1; ?>" class="checkbox lb-toggle" data-name="active_flg" type="checkbox" />
                            <label for="chk-<?php echo $index+1; ?>"></label>
                        </td>
                    </tr>
                    <?php } ?>
                </tbody>
            </table>
        </div>
        </form>
    </div>
    <div class="clearfix"></div>
</div>